import request from '../utils/request'

export const login = data => {
  return request({
    url: '/v1_0/authorizations',
    method: 'POST',
    data
  })
}
export const getCode = data => {
  return request({
    url: `/v1_0/sms/codes/${data}`,
    method: 'GET'

  })
}
export const getUserInfo = () => {
  return request({
    url: '/v1_0/user',
    method: 'GET'
  })
}
